
package org.apache.solr.core;

import java.io.File;
import java.io.IOException;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.NIOFSDirectory;


/**
 * Factory to instantiate {@link org.apache.lucene.store.NIOFSDirectory}
 *
 **/
public class NIOFSDirectoryFactory extends CachingDirectoryFactory {

    @Override
    protected Directory create(String path) throws IOException {

        return new NIOFSDirectory(new File(path));
    }
}
